#include <stdio.h>

#include "plat_storage.h"

int32_t PlatStorage::GetObsolutePath(const char *childPath, char *retPath, int32_t retPathSize)
{
    const char* obsolutePath = "/tmp/storage";
    if (childPath[0] == '/')
        return snprintf(retPath, retPathSize, "%s%s", obsolutePath, childPath);
    else
        return snprintf(retPath, retPathSize, "%s/%s", obsolutePath, childPath);
}
